package com.dingceng.demo.photo.net

import com.dingceng.demo.base.GET_SPLASH_TRAIT
import kotlinx.coroutines.Deferred
import retrofit2.http.Body
import retrofit2.http.POST
/**
 * retrofit搭配协程只需要将返回值设置为Deferred即可
 */
interface PhotoService{
    @POST(GET_SPLASH_TRAIT)
    fun getDemoTrait(@Body request: Map<String, String>): Deferred<SplashTraitBean>
}
